package com.sm.service;

import com.sm.dao.HomeIconMapper;
import com.sm.model.HomeIcon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HomeIconService {

    @Autowired
    private HomeIconMapper homeIconMapper;

    //拉取首页所有的icon
    public List<HomeIcon> selectHomeIcons(){
        return homeIconMapper.selectHomeIcons();
    }

    //拉取状元学堂所有的icon
    public List<HomeIcon> selectSchoolIncons(){
        return homeIconMapper.selectSchoolIcons();
    }


}
